package com.ibm.datamodel.exp;

import java.io.Serializable;

public class ObjectMessage implements Serializable{
	Object[] values;

	public Object[] getValues() {
		return values;
	}

	public void setValues(Object[] values) {
		this.values = values;
	}
	
	public ObjectMessage(int len) {
		values = new Object[len];
	}

	public ObjectMessage(Double[][] tmp,int[] die) {
		
		values = new Object[die.length];
		for (int i = 0; i < tmp.length; i++) {
			if (die[i] == 1) {
				values[i] = tmp[i][0];
			}else {
				values[i] = tmp[i];
			}
		}
	}
	
	public ObjectMessage withValue(Object v, int index){
		values[index] = v;
		return this;
	}
	

}
